#include "Pion.h"

Pion::Pion()
	: SDLSprite()
	, filePath("Hello.bmp")
{
	SetTexture(filePath);
}

Pion::~Pion()
{
}

void Pion::Update()
{
	if(SDLInput::GetInstance()->IsKeyPressed(SDL_SCANCODE_SPACE))
	{
		std::cout << "Test" << std::endl;
	}

	if(SDLInput::GetInstance()->IsKeyReleased(SDL_SCANCODE_SPACE))
	{
		std::cout << "Test2" << std::endl;
	}
	
	if(SDLInput::GetInstance()->IsMouseButtonHeld(SDL_BUTTON_LEFT))
	{
		std::cout << "Test4" << std::endl;
	}

	//SDLInput::GetInstance()->GetMousePosition(clickedX, clickedY);
	//std::cout << "X: " << clickedX << ", Y: " << clickedY << std::endl;
	std::cout << "DT: " << SDLTimer::GetInstance()->GetDeltaTime() << std::endl;
}

void Pion::Draw()
{
	//SDL_SetTextureColorMod(texture, 255, 0, 0);
	SDLSprite::Draw();
}